Include plots

library(ggplot2)
library(plotly)
## Warning: package 'plotly' was built under R version 3.4.1
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout
g <- ggplot(txhousing, aes(x = date, y = sales, group = city)) +
  geom_line(alpha = 0.4)
g
## Warning: Removed 430 rows containing missing values (geom_path).

ggplotly(g)
## We recommend that you use the dev version of ggplot2 with `ggplotly()`
## Install it with: `devtools::install_github('hadley/ggplot2')`

Including Plots

You can also embed plots, for example:

## Warning: package 'ggiraph' was built under R version 3.4.1
## Warning: package 'gdtools' was built under R version 3.4.1
## Warning: Removed 430 rows containing missing values (geom_path).

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.